﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace Menus.Models
{
    public class UserSecondMenu
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
       public int id { get; set; }
        [Required]
       public string authName { get; set; }
       public string path { get; set; }
        public Permission permission { get; set; }
        [ForeignKey("UserMenuId")]
       public int UserMenuId { get; set; }
        [JsonIgnore]
        public UserMenu UserMenu { get; set; }
    }
}
